package cn.xd.base.application.assembler;

import cn.xd.base.domain.bean.response.AdminRoleDetailDTO;
import cn.xd.base.domain.entity.AdminRole;
import cn.xd.base.persistence.dos.AdminRoleDO;
import cn.xd.core.converter.Converter;
import cn.xd.core.converter.ReferenceMapper;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(uses = ReferenceMapper.class)
public interface AdminRoleDetailAssembler extends Converter<AdminRoleDetailDTO, AdminRoleDO> {
    AdminRoleDetailAssembler INSTANCE = Mappers.getMapper(AdminRoleDetailAssembler.class);

    AdminRoleDetailDTO toDTO(AdminRole adminRole);

    List<AdminRoleDetailDTO> toDTOs(List<AdminRole> adminRoles);
}
